#include <iostream>
using namespace std;

class B;

class A {
	private:
		int m_a;
		int m_b;
	public:
		A(int a, int b) : m_a(a), m_b(b) { }
		friend class B;
};

class B {
	public:
		void show(const A &obj) const
		{
			cout << obj.m_a << ", " << obj.m_b << endl;
		}
};

int main(void)
{
	A a(101, 42);
	B b;

	b.show(a);
}

